package com.zzyl.mapper;

import com.zzyl.entity.Bed;
import com.zzyl.vo.BedVo;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface BedMapper {

    List<BedVo> getBedsByRoomId(Long roomId);


    /**
     * 插入一条bed记录
     */
    int insert(Bed bed);

    /**
     * 根据id查询bed
     */
    Bed selectById(Long id);

    /**
     * 根据id更新bed
     */
    int updateById(Bed bed);

    /**
     * 根据id删除bed
     */
    int deleteByPrimaryKey(Long id);
}

